package com.baidu.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @author ShiLei
 * @version v1.0
 * @date 2020-03-12 23:14
 * <p>
 * EnableDiscoveryClient 该注解用于使用consul 或者 zookeeper 作为注册中心服务
 *
 * 启动会报错：zookeeper自带的版本是3.5.3 linux下zookeeper版本是3.4.1 存在版本冲突 所以会报错
 * 增加zookeeper排除依赖
 */
@SpringBootApplication
@EnableDiscoveryClient
public class PaymentMain8004 {
    public static void main(String[] args) {
        SpringApplication.run(PaymentMain8004.class, args);
    }
}
